package work.mediway.mdm.biz.mapper.hierarchy;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import work.mediway.mdm.biz.entity.hierarchy.HosPerson;

@Mapper
public interface HosPersonMapper extends BaseMapper<HosPerson> {

    List<HosPerson> findByOrg(Page<HosPerson> page, @Param("orgCode") String orgCode);

    List<HosPerson> find(@Param("page") Page<HosPerson> page, @Param("hosPerson") HosPerson hosPerson);

    HosPerson findById(@Param("paPersonID") String paPersonID);

    int update(HosPerson hosPerson);
}
